package com.ljy.service;

import com.ljy.dto.GoodsDTO;
import com.ljy.dto.LeaseDTO;
import com.ljy.dto.LeasePageDTO;
import com.ljy.entity.Lease;
import com.ljy.entity.RollImage;
import com.ljy.result.PageResult;
import com.ljy.vo.LeaseVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface LeaseService {
    void addLease(LeaseDTO leaseDTO);

    PageResult<LeaseVO> selectPage(LeasePageDTO dto);

    Lease selectById(Integer id);


    @Transactional
    void batchDelete(List<Integer> ids);

    void changeStatus(Short status, Integer id);

    void modifyLease(LeaseDTO dto);

    void rollImageSubmit(List<RollImage> dto);

    List<RollImage> getRollImage();

}
